package org.csu.group4.jpetstore.persistence;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.csu.group4.jpetstore.mybatis.entity.Category;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface CategoryDAO {
    @Select("select * from category")
    List<Category> findAll();

    @Select("select *from category where catid=#{catid}")
    Category findByCid(String catid);
}
